package today.rocky.boot.mycat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author Rocky
 * @date 2020/2/20 17:16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Student对象", description="学生")
public class Student  implements Serializable {

    private static final long serialVersionUID = 12L;

    @TableId(value = "sid", type = IdType.AUTO)
    private int sid;

    @ApiModelProperty(value = "用户名")
    private String name;

    @ApiModelProperty(value = "qq号")
    private String qq;
}
